<!-- 
    @author Wójcik Karol <wojcikk@student.agh.edu.pl>
    @licence http://www.gnu.org/copyleft/gpl.html GNU/GPL
-->

<%= error_messages_for 'lesson' %>

<!--[form:lesson]-->

<p><label for="lesson_subject_id">Przedmiot</label><br/>
<%=  select("lesson", "subject_id", Subject.find(:all).collect {|p| [ "#{p.name} - (#{p.major.name}:#{p.year})", p.id ] },  {:include_blank => true}) %></p>

<p><label for="lesson_class_type_id">Typ Zajec</label><br/>
<%=  select("lesson", "class_type_id", ClassType.find(:all).collect {|p| [ p.name, p.id ] },  {:include_blank => true}) %></p>

<p><label for="lesson_lgodznazaj">Lgodznazaj</label><br/>
<%= text_field 'lesson', 'lgodznazaj'  %></p>

<p><label for="lesson_lgrzaj">Lgrzaj</label><br/>
<%= text_field 'lesson', 'lgrzaj'  %></p>

<p><label for="lesson_lgrroz">Lgrroz</label><br/>
<%= text_field 'lesson', 'lgrroz'  %></p>

<p><label for="lesson_semestr">Semetr</label><br/>
<%= select("lesson", "semestr", {"Zimowy" => "Zimowy","Letni" => "Letni","Inne" => "Inne"}, {:include_blank => true})  %></p>


<!--[eoform:lesson]-->

